const fs=require('fs')
const url=require("url")

module.exports=function (path){
    
    try {
        let data=fs.readFileSync(path)
         return data
    } catch (error) {
        return `{code:404,msg:"no find page"}`
    }
}

// fn()